<!-- <section class="enterprise" ng-controller="enterpriseCtrl">
    <div class="panel panel-default">
        <div class="panel-heading">
            品牌管理
        </div>
        <div class="panel-body">
            <form class="form-horizontal" novalidate>
                <div class="form-group" ng-if="companies.length > 0" ng-repeat="(key, company) in companies track by key">
                    <div class="input-group">
                        <div class="input-group-addon">{{ key + 1 }}</div>
                        <input type="text" class="form-control" ng-model="company.name" ng-disabled="true" id="exampleInputAmount">
                        <div class="input-group-addon" ng-click="deleteBrand(company, key);"><i class="icon-delete"></i></div>
                    </div>
                </div>
                <div class="form-group" ng-if="companies.length <= 0">
                    暂无品牌，请添加品牌
                </div>
                <div ng-show="isAdd">
                    <form name='brandForm' role="form" novalidate>
                        <div class="form-group">
                            <input type="text" class="form-control" ng-model='brand.name' name='name' ng-pattern="/^[A-Za-z0-9\u4e00-\u9fa5]{1,50}$/" id="name" placeholder="品牌名称" required>
                        </div>
                        <div class="form-group">
                            <button type="button" class="btn btn-mt-ok" ng-click="addBrand(brandForm.$invalid, brand);">保存</button>
                            <button type="button" class="btn btn-mt-ok" ng-click="cancelEnterPrise();">取消</button>
                        </div>
                    </form>
                </div>
                <div class="form-group from-group-reset">
                    <img src="components/mine/orders/orderdetail/imgs/add.png" alt="" ng-click="isAdd = true;">
                </div>
            </form>
        </div>
    </div>
</section> -->
<section class="enterprise" ng-controller="enterpriseCtrl">
  <!-- <ol class="breadcrumb">
      <li ui-sref="mine.list({ ctrl: 'functions' })"><a>更多功能</a></li>
      <li><a>品牌管理</a></li>
  </ol> -->
  <div class="panel panel-default">
    <div class="panel-heading">
      <div class="row">
        <div class="col col-md-6">品牌管理</div>
        <div class="col col-md-6 pull-right text-right">
          <button class="btn" ui-sref="mine.brandnew">
            添加品牌
          </button>
        </div>
      </div>
    </div>
    <div class="panel-body">
      <table class="table">
        <thead>
          <tr>
            <th class="text-center"> 品牌名称 </th>
            <th class="text-center"> logo </th>
            <th class="text-center"> 管理员 </th>
            <th class="text-center"> 手机号 </th>
            <th class="text-center" col='2'> 操作 </th>
          </tr>
        </thead>
        <tbody>
          <tr ng-repeat="(key, company) in companies track by key">
            <td class="text-center">{{ company.name }}</td>
            <td class="text-center">
                <img ng-src="{{company.logo.url}}?imageView2/1/w/200/h/200/interlace/1" style="width: 50px;height: 50px;">
            </td>
            <td class="text-center">{{ company.manager.real_name }}</td>
            <td class="text-center">{{ company.tel }}</td>
            <td class="text-center" col='2'>
              <button type="button" class="yf-btn" ui-sref="mine.brandnew({id: company.id})">修改</button>
            </td>
          </tr>
        </tbody>
      </table>
      <nav ng-show='roles && roles.length > 0 && page.total_count > page.current_total && !iskeyword' style="text-align: center;">
          <ul uib-pagination total-items="page.total_count" items-per-page='page.current_total' ng-model="page.current_page" ng-change="getRoles(page.current_page);" max-size="maxSize" class="pagination-sm" boundary-links="true" force-ellipses="true" next-text="下一页" last-text="尾页" previous-text="上一页" first-text="首页"></ul>
      </nav>
    </div>
  </div>
      
</section>
